// Тестирование оставшейся части методов контейнера

#include <iostream>
#include "FigureContainer.h"

using namespace std;

int main()
{ 
    FigureContainer fg;

    vector<double> e{0, 0, 2, 5};
    fg.addFigure(ell, e);

    e.clear();
    e = {9, 5, 8, 7};
    fg.addFigure(rect, e);

    e.clear();
    e = {0, 0, 2, 5, 4.54};
    fg.addFigure(tri, e);

    cout << "size " << fg.size() << endl;

    e.clear();
    e = {6, 5, 3, 7, 89};
    fg.changeData(2, e);

    e.clear();
    e = fg[2]->getData();
    for (size_t i = 0; i < e.size(); ++i)
        cout << e[i] << " ";
    cout << endl;

    cout << "isEmpty " << fg.isEmpty() << endl;

    fg.remove(0);
    cout << "remove--->size " << fg.size() << endl;

    fg.removeAll();
    cout << "removeAll--->isEmpty " << fg.isEmpty() << endl;

    cout << endl << "Happy end" << endl;
    return 0;
}
